Skip to main content

LongestOrderedSequence

LongestOrderedSequence[list] finds the longest ordered sequence of contiguous or disjoint elements in list.

LongestOrderedSequence[list,p] finds the longest ordered sequence using the ordering function p.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.